package com.scut.fy.admin.flux;

import cn.dev33.satoken.SaManager;
import com.fasterxml.jackson.core.JsonProcessingException;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;

/**
 * 启动类
 *
 * @author JY
 * @version 1.0
 * @date 2021/9/28
 */
@SpringBootApplication
@EnableDiscoveryClient
@ComponentScan(basePackages = {"com.scut.fy.common.config","com.scut.fy.admin.flux"})
public class FyAdminFluxApplication {

    public static void main(String[] args) throws JsonProcessingException {

        SpringApplication.run(FyAdminFluxApplication.class, args);
        System.out.println("启动成功：Sa-Token配置如下：" + SaManager.getConfig());
    }
}
